﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Microsoft.Bing
{
    /// <summary>
    /// Defines a contract for an type which provides search history storage
    /// </summary>
    public interface ISearchStorage
    {
        /// <summary>
        /// Defines a method which reads a <see cref="SearchHistory"/> from some persistent storage.
        /// </summary>
        /// <returns>A <see cref="SearchHistory"/> collection</returns>
        SearchHistory   ReadHistory();

        /// <summary>
        /// Defines a method which writes a <see cref="SearchHistory"/> to persistent storage.
        /// </summary>
        /// <param name="history">The <see cref="SearchHistory"/> to store</param>
        void            WriteHistory(SearchHistory history);
    }
}
